export type OptionType = {
  value: string;
  label: string;
  checked: boolean;
};

export type QuestionCheckboxPropsType = {
  title?: string;
  list?: OptionType[];
  isVertical?: boolean;

  onChange?: (newProps: QuestionCheckboxPropsType) => void;
  disabled?: boolean;
};

export const QuestionCheckboxDefaultProps: QuestionCheckboxPropsType = {
  title: "多选标题",
  list: [
    { label: "选项1", value: "1", checked: false },
    { label: "选项2", value: "2", checked: false },
    { label: "选项3", value: "3", checked: false },
  ],
  isVertical: false,
};

// 统计组件的属性类型
export type QuestionCheckboxStatPropsType = {
  stat: { name: string; count: number }[];
};
